home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1184 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.5 KB  |  56 lines

  1. Path: peer-news.britain.eu.net!psinntp!psinntp!psinntp!pipeline!not-for-mail
  2. From: gordo@nyc.pipeline.com (Gordon Krefting)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Simple DLL Problem
  5. Date: 9 Jan 1996 13:52:23 -0500
  6. Organization: The Pipeline
  7. Message-ID: <4cudh7$jpq@pipe11.nyc.pipeline.com>
  8. References: <30f27530.80885051@news.internet-eireann.ie>
  9. NNTP-Posting-Host: pipe11.nyc.pipeline.com
  10. X-PipeUser: gordo
  11. X-PipeHub: nyc.pipeline.com
  12. X-PipeGCOS: (Gordon Krefting)
  13. X-Newsreader: The Pipeline v3.4.0
  14.  
  15. On Jan 09, 1996 14:02:30 in article <Simple DLL Problem>,
  16. 'mkelly@vocean.ie' wrote: 
  17.  
  18.  
  19. >Problem Writing a Simple DLL! 
  20. >Hi, 
  21. >Can anyone tell me where I am going wrong with the following Visual 
  22. >C++ code? 
  23. >Below is the code for my first DLL written in VC++ 1.5. The code 
  24. >compiles and a DLL is built, but when it is called from the calling 
  25. >Visual Basic program, I get the error 
  26. >    æ Sub or Function not defined æ 
  27. >It would appear that the DLL file is being located, but that the 
  28. >function is not being recognised. 
  29. >The DLL code is called from a working VB program and is properly 
  30. >declared therein as an API function. 
  31. >I have listed the Compiler and Linker options after the code if that 
  32. >is of Help. 
  33. >Thanks 
  34. >Martin 
  35. [SNIP] 
  36. >------------------------------ mySum.def 
  37. LIBRARY   MYSUM 
  38. EXETYPE   WINDOWS 
  39. CODE      PRELOAD MOVEABLE DISCARDABLE 
  40. DATA      PRELOAD MOVEABLE SINGLE 
  41. HEAPSIZE  1024 
  42. EXPORTS 
  43.    WEP  @1 RESIDENTNAME 
  44.    MySum   @2 
  45.    ^^^^^^^^^^ 
  46. Try adding this! 
  47.  
  48. HTH 
  49. gordo 
  50.